package yl.hs.bmipfull.daos.finance;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.finance.SettleAdditionEntity;

import java.util.List;

/**
 * ISettleAdditionDao 结算单辅助项数据操作接口
 * @apiNote  财务管理——结算单服务项目信息
 * @author 谢景广
 * @date 2021-12-29
 */
@Repository
public interface ISettleAdditionDao extends BaseDao<SettleAdditionEntity> {

    /***
     * 根据结算单编号删除结算单所有辅助项信息
     * @param settleSN 结算单编号
     * @return 删除结果
     */
    Integer deleteBySettleSN(@Param("settleSN") String settleSN);

    /**
     * 根据结算单编号获取结算单的所有辅助项信息
     * @param settleSN 结算单编号
     * @return 辅助项信息集合
     */
    List<SettleAdditionEntity> queryAdditionsBySettleSN(@Param("settleSN") String settleSN);
}
